using System.ComponentModel.DataAnnotations;

namespace BW.Demo.Domain.Entities
{
    /// <summary>
    /// 供应商
    /// </summary>
    public class Supplier
    {
        /// <summary>
        /// 供应商主键ID
        /// </summary>
        [Key]
        public int SupplierId { get; set; }

        /// <summary>
        /// 生产批次
        /// </summary>
        [MaxLength(50)]
        public string Batch { get; set; } = string.Empty;

        /// <summary>
        /// 深加工类型(1.原料、2.辅料、3.添加剂、4.包材)
        /// </summary>
        [MaxLength(30)]
        public string ProcessingType { get; set; } = string.Empty;

        /// <summary>
        /// 类型生产批次
        /// </summary>
        [MaxLength(30)]
        public string Batch_Number { get; set; } = string.Empty;
    }
}
